package alarm.ruiqi.com.alarm_pro.utils;

        import android.text.TextUtils;

        import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * Created by 徐宇健 on 2015/8/25 0025.
 */
public class RequestURL {

    public static String getWeatherForcast (String location , int index){
        try {
            //"http://api.map.baidu.com/telematics/v3/weather?location="+ URLEncoder.encode(location,"UTF-8")+"&output=json&ak="+Constant.BAIDU_AKS[index];
            return TextUtils.concat("http://api.map.baidu.com/telematics/v3/weather?location=",URLEncoder.encode(location,"UTF-8"),"&output=json&ak=",Constant.BAIDU_AKS[index]).toString();
        } catch (UnsupportedEncodingException e) {
            return "";
        }
    }

    public static String getTabURLById(int id) {
        return "http://183.203.18.45:7001/jeesite/m/articles-list-"+id+"-1001004.html";
    }




}
